jQuery.validator.addMethod("isZipCode", function(value, element) {
    var tel = /^[0-9]{6}$/;
    return this.optional(element) || (tel.test(value));
}, "请正确填写您的邮政编码")

jQuery.validator.addMethod("isMobile", function(value, element) {
    var tel = /^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\d{8}$/;
    return this.optional(element) || (tel.test(value));
}, "请输入有效的手机号码");

jQuery.validator.addMethod("isIdCard", function(value, element) {
    var tel = /^\d{15}|\d{18}$/;
    return this.optional(element) || (tel.test(value));
}, "请输入有效的身份证号码");